module.exports = {
    // 入口文件
    entry: {
        index: './public/javascripts/index/main.jsx'
    },
    // 输出文件路径
    output: {
        path: __dirname + "/public/javascripts/",
        filename: "[name].js"
    },
    resolve: {
        extensions: ['', '.js', '.jsx']
    },
    module: {
        loaders: [
            {
                test: /\.js|jsx$/,
                loader: 'babel',
                query: {
                    presets: ['react']
                }
            }
        ]
    }
};
